/*
 * createTime: 2020/3/15
 * description: 订单列表接口
 */

import { BaseService, Service } from '@/core';

@Service('app/tbOrder')
export default class extends BaseService {
	constructor() {
		super();
		this.page = this.page.bind(this);
	}
	// 总计补贴和相应订单数
	async sum(params) {
		return this.request({
			url: '/sum',
			params: {
				...params
			}
		});
	}

	// 订单号查询
	findBytradeId(params) {
		return this.request({
			url: '/findBytradeId',
			params: {
				...params
			}
		});
	}

	// 订单找回绑定
	binding(params) {
		return this.request({
			url: '/binding',
			method: 'POST',
			data: {
				...params
			}
		});
	}
}
